<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

	<xsl:output method="html" />

	<xsl:param name="DOTNET2"/>
	<xsl:template match="Class">

		<xsl:variable name="Name" select="Name"/>
		<xsl:variable name="HeaderInfo" select="HeaderInfo/ProjectName"/>
	<![CDATA[
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
]]>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<![CDATA[<!--

This page is valid XHTML 1.0 Strict. 
To re-validate visit http://validator.w3.org/ 


**************************************************************
IMPORTANT BIT:

This code is owned by you. No copyright is held by
GENNIT. However, please note the disclaimer below
**************************************************************

GENNIT refers to the GENNIT website and anyone affiliated
with the GENNIT system. Including but not limited to
the administrator and service provider.

Unless agreed to in writing, source code is distributed on an 
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
either express or implied. GENNIT are not responsible for 
your use/misuse of this code.

When you use GENNIT code, you do so at your own risk and 
GENNIT is not responsible for the accuracy, 
reliability or functionality of the code. GENNIT expressly 
disclaims any potential liability associated with use of 
this generated code.
-->]]>

  <head>
		<title><xsl:value-of select="Name"/> Form</title>
		
		<style type="text/css" media="all">
		
/* 
	This CSS is valid. 
	To re-validate visit http://jigsaw.w3.org/css-validator 
*/

body
{
	font-family:Verdana, Arial;
	font-size:16pt; 
}

input, select, textarea
{
	font-family:Verdana, Arial;
	font-size:16pt;
}

fieldset 
{ 
	padding:1em; 
	border:solid 1px #efefef; 

}

label 
{
	margin-top:2px;
	width:10em;
	float: left;
	text-align: right;
	display:block;
	margin-right:10px;
}


    </style>

	</head>
	
	
	<body>
		<fieldset>
			<legend><xsl:value-of select="Name"/> Form</legend>
			
			<xsl:for-each select="ClassAttribs/ClassAttributes">
			<p>
				<label><xsl:attribute name="for"><xsl:value-of select="Name"/></xsl:attribute><xsl:value-of select="PropertyName"/></label>
				<xsl:choose>
					<xsl:when test="Type='Text'">
					<input type="text"><xsl:attribute name="id"><xsl:value-of select="Name"/></xsl:attribute></input>
					</xsl:when>
					
					<xsl:when test="Type='Password'">
					<input type="password"><xsl:attribute name="id"><xsl:value-of select="Name"/></xsl:attribute></input>
					</xsl:when>
					
					<xsl:when test="Type='Checkbox'">
					<input type="checkbox"><xsl:attribute name="id"><xsl:value-of select="Name"/></xsl:attribute></input>
					</xsl:when>
					
					<xsl:when test="IsEnum='true'">
					<select><xsl:attribute name="id"><xsl:value-of select="Name"/></xsl:attribute>
						<xsl:for-each select="Values/string">
						<option><xsl:attribute name="value"><xsl:value-of select="."/></xsl:attribute><xsl:value-of select="."/></option>
						</xsl:for-each>
					</select>
					</xsl:when>
					
					<xsl:when test="Type='Textarea'">
					<textarea rows="3" cols="20"><xsl:attribute name="id"><xsl:value-of select="Name"/></xsl:attribute></textarea>
					</xsl:when>
				</xsl:choose>
			</p>
			</xsl:for-each>
		</fieldset>
		

	
	</body>

</html>




	</xsl:template>
	
	
	
</xsl:stylesheet>